package com.googlecode.horncomb.orm.support.filter;

import java.util.HashMap;
import java.util.Map;


public class MapConditionImpl implements Condition {
	private Map<String, Object> map = new HashMap<String, Object>();

	public MapConditionImpl() {
		super();
	}

	public MapConditionImpl(Map<String, Object> map) {
		super();
		this.map = map;
	}

	public MapConditionImpl addConstraint(String key, Object value) {
		this.getConstraintsMap().put(key, value);
		return this;
	}

	public Map<String, Object> getConstraintsMap() {
		return map;
	}
}
